/**
 * 
 */
package santeclair.webext.dto.jeton;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;

import santeclair.webext.dto.jeton.enumeration.RetourSsoEnum;

/**
 * @author cquintin
 * 
 */
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class RetourCreationJetonSso {
    private final RetourSsoEnum retourSso;
    private final String redirectUrl;
    private final String jeton;
    private final String messageRetour;

    /**
     * 
     */
    public RetourCreationJetonSso() {
        retourSso = null;
        messageRetour = null;
        redirectUrl = null;
        jeton = null;
    }

    /**
     * @param retourSso
     * @param messageRetour
     */
    public RetourCreationJetonSso(RetourSsoEnum retourSso, String redirectUrl, String jeton) {
        this.retourSso = retourSso;
        this.messageRetour = null;
        this.redirectUrl = redirectUrl;
        this.jeton = jeton;
    }

    /**
     * @param retourSso
     * @param messageRetour
     */
    public RetourCreationJetonSso(RetourSsoEnum retourSso, String messageRetour) {
        this.retourSso = retourSso;
        this.messageRetour = messageRetour;
        this.redirectUrl = null;
        this.jeton = null;
    }

    /**
     * @return the retourSso
     */
    public RetourSsoEnum getRetourSso() {
        return retourSso;
    }

    /**
     * @return the messageRetour
     */
    public String getMessageRetour() {
        return messageRetour;
    }

    /**
     * @return the redirectUrl
     */
    public String getRedirectUrl() {
        return redirectUrl;
    }

    /**
     * @return the jeton
     */
    public String getJeton() {
        return jeton;
    }

}
